import { defineStore } from 'pinia'
const useBaseStore = defineStore('base', {
  state: ():any =>({
    // 侧边导航
    menus: [
      {
        label: "任务信息",
        path: '/TaskInformation',
        icon: "Printer",
      },
      {
        label: "客户信息",
        path: '/CustomerInformation',
        icon: "User"
      },
      {
        label: "客户跟进",
        path: '/CustomerFollowUp',
        icon: "Sunny"
      },
      {
        label: "产品信息",
        path: '/ProductInformation',
        icon: "Files"
      },
      {
        label: "参数配置",
        path: '/ParameterConfiguration',
        icon: "Setting"
      }
    ],
    // 侧边导航折叠状态
    menuCollapse: false,
    // 新增里面选择客户按钮
    selectCustomers: true

  }),
  actions: {
    toggleMenuCollapse(){
      this.menuCollapse = !this.menuCollapse
    }
  }
})

export default useBaseStore